home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 11
/
QRZ Ham Radio Callsign Database - Volume 11.iso
/
files
/
demos
/
kagoldtd.exe
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-04-05
|
7KB
|
148 lines
echo off
rem Automatic Installation routine. Requires two parameters:
rem 1: the source drive (the one with the KaGOLD Testdrive files)
rem 2: the target drive (where the program will be installed)
rem The target must have at least 360K free for the main program and
rem an additional 250K for the help system. A 720-K floppy or a hard
rem disk is recommended to allow all files to be installed.
cls
ECHO ┌───────────────────────────────────────────────┐
echo │ To Run KADEMO you must have Version 5 or │
echo │ later ROMS for KAM, and KPC units │
echo │ The Data Engine requires a special version │
echo │ of KaGOLD/de and version 2.0 ROMS │
echo │ │
ECHO │ Interflex Systems Design │
echo │ Post Office Box 6418 │
echo │ Laguna Niguel, CA 92607-6418 │
echo │ │
echo │ VISA & MasterCard orders: (714) 496-6639 │
echo └───────────────────────────────────────────────┘
if t%1==t goto noparm
if t%2==t goto noparm
if t%1==t%2 goto samedrive
Goto Install
echo Found %1
rem ------------- No parameters given to install
:noparm
echo ┌───────────────────────────────────────────────────────────────────┐
echo │ Type INSTALL x: y: e.g. INSTALL A: C: (drive letters only) │
echo │ │
echo │ where x: is the source drive (the one with Kagold Test Drive) │
echo │ and y: is the target drive, where you want to put the program. │
echo └───────────────────────────────────────────────────────────────────┘
goto done
rem ------------- User used same drive letters
:samedrive
echo ┌───────────────────────────────────────────────────────────┐
echo │ The Source drive must be different from the Target drive. │
echo │ │
echo │ e.g. INSTALL A: D: │
echo └───────────────────────────────────────────────────────────┘
goto done
:install
if not exist %1tdsfx.exe goto baddisk
echo ┌─────────────────────────────────────────────────────────────┐
echo │ o Installing from "%1" to "%2" │
echo │ │
echo │ o A subdirectory named "TESTDRIV" will be created │
echo │ │
echo │ o If this is okay, hit [enter]. To cancel installation │
echo │ at this point, use Ctrl-C. │
echo └─────────────────────────────────────────────────────────────┘
ECHO.
pause
ECHO.
%2
cd\
md TestDriv > nul
cd TestDriv > nul
if not exist Kademo.exe goto newdir
ECHO.
echo It appears that a version of KaDEMO already exists in the
echo directory "%2\testdriv"
ECHO.
echo You can install this version "on top" of the existing version
echo by hitting any key, or you can use Control-Break to stop the
echo installation and manually delete the existing KaDEMO files.
echo Or you could install to a different drive letter.
ECHO.
echo Suggestion: Go ahead and let this install into the testdrive
echo directory by hitting any key.
ECHO.
pause
echo y|del *.* > nul
ECHO.
:NEWDIR
echo ┌────────────────────────────────────────────────────────────┐
echo │ Now unpacking the KaDEMO program and support files.... │
echo └────────────────────────────────────────────────────────────┘
ECHO.
%1tdsfx
if not exist Kademo.exe goto noinstall
echo ┌────────────────────────────────────────────────────────────┐
echo │ Now unpacking the KaGOLD Help system... │
echo └────────────────────────────────────────────────────────────┘
ECHO.
%1tdhlpsfx
echo ┌────────────────────────────────────────────────────────────┐
echo │ Now unpacking some useful Docfiles... │
echo └────────────────────────────────────────────────────────────┘
ECHO.
%1docfiles
if exist Kademo.HLP goto ALLOK
echo ┌────────────────────────────────────────────────────────────┐
echo │ HELP system not installed. Not enough room (needs 200K+) │
echo └────────────────────────────────────────────────────────────┘
:ALLOK
CLS
ECHO.
ECHO.
echo ┌───────────────────────────────────────────────────────────────╖
echo │ You may now run the program by typing KaDEMO [enter] ║
rem
if NOT exist Kademo.hlp goto skiphelp
rem
echo │ Use [F1] for online help while program is running. ║
echo │ ║
echo │ The help system has information on TNC setup and other ║
echo │ subjects. You can use the HELP system by itself by ║
echo │ starting the program with the "/H" option, e.g. KaDEMO/H ║
:skiphelp
echo │ ║
echo │ Type HELP (a batch file) to see some other documentation. ║
echo │ Also: Look at the various .DOC files on the disk. ║
echo │ ║
echo │ 73, de Jeff WA4EGT -- InterFlex Systems -- (714) 496-6639 ║
echo ╘═══════════════════════════════════════════════════════════════╝
ECHO.
ECHO Type KaDEMO or KaGOLD to start the Version 8 TestDrive program.
ECHO Read VER9.DOC for information about Version 9 features
ECHO.
goto done
rem Bad Installation
:noinstall
cls
echo ┌───────────────────────────────────────────────────────────────┐
echo │ Sorry, but either no room on target, or you didn't specify │
echo │ the drives correctly, the Testdrive disk is not in "%2" │
echo │ or some other problem. Please insert your TestDrive disk in │
echo │ some floppy drive, and try again. │
echo └───────────────────────────────────────────────────────────────┘
ECHO.
goto done
:baddisk
ECHO.
ECHO.
echo ┌──────────────────────────────────────────────────────────────┐
echo │ │
echo │ TDSFX.EXE is not on the %1 drive. │
echo │ Please insert the disk, or be sure that the │
echo │ test drive files are on the source disk. │
echo │ │
echo └──────────────────────────────────────────────────────────────┘
ECHO.
rem Program Ends here
:done
ECHO Read any messages on this screen then
pause